class NewTests extends GroovyTestCase {
	 void testConstraints() {
		 def story = new New(title:"today is saturday", content:"yeeeeahhhh")
		 assertTrue story.validate()
		 
		 def anotherStory = new New(title:"i'm tired", content:"")
		 assertFalse anotherStory.validate()
	 } 
}
